package com.wk.ums.feign;

import com.wk.common.bean.Resp;
import com.wk.ums.entity.Member;
import com.wk.ums.entity.MemberReceiveAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient("ums-service")
@RequestMapping("memberReceiveAddress")
public interface MemberReceiveAddressFeign {

    /**
     * 根据用户ID查询对应的收货地址列表
     */
    @GetMapping("{userId}")
    public Resp<List<MemberReceiveAddress>> queryByUserId(@PathVariable(value = "userId") Long userId);

}
